package aiku.numericalcontroloa.Model.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName bills
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="payment_billing")
@Data
public class PaymentBilling extends BaseEntity implements Serializable {

    /**
     * 采购/报销订单id
     */
    @TableField(value = "orders_id")
    private String orderId;

    /**
     * 应付金额
     */
    @TableField(value = "amount_payable")
    private BigDecimal amountPayable;

    /**
     * 应付日期
     */
    @TableField(value = "date_payable")
    private LocalDate datePayable;

    /**
     * 实付金额
     */
    @TableField(value = "payment_amount")
    private BigDecimal paymentAmount;

    /**
     * 实付日期
     */
    @TableField(value = "payment_date")
    private Date paymentDate;

    /**
     * 付款账户
     */
    @TableField(value = "account")
    private String account;

    /**
     * 账单状态（0待付款，1已付款，2逾期等）
     */
    @TableField(value = "bills_status")
    private Integer billsStatus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}